import request from '@/utils/request'

// 查询租赁项目-租金计划列表
export function listDealLeaseRentPlan(query) {
  return request({
    url: '/leaseRentPlan/dealLeaseRentPlan/list',
    method: 'get',
    params: query
  })
}

// 查询租金回款台账
export function listDealLeaseRentPlanReport(query) {
  return request({
    url: '/leaseRentPlan/dealLeaseRentPlan/reportList',
    method: 'get',
    params: query
  })
}

// 查询租赁项目-租金计划详细
export function getDealLeaseRentPlan(id) {
  return request({
    url: '/leaseRentPlan/dealLeaseRentPlan/' + id,
    method: 'get'
  })
}

// 保存租赁项目-租金计划
export function saveDealLeaseRentPlan(data) {
  return request({
    url: '/leaseRentPlan/dealLeaseRentPlan/save',
    method: 'post',
    data: data
  })
}

// 删除租赁项目-租金计划
export function delDealLeaseRentPlan(id) {
  return request({
    url: '/leaseRentPlan/dealLeaseRentPlan/' + id,
    method: 'delete'
  })
}

// 导出租赁项目-租金计划
export function exportDealLeaseRentPlan(query) {
  return request({
    url: '/leaseRentPlan/dealLeaseRentPlan/export',
    method: 'get',
    params: query
  })
}

// 查询合同编号
export function findSelect(query) {
  return request({
    url: '/leaseRentPlan/dealLeaseRentPlan/findContractSelect',
    method: 'get',
    params: query
  })
}

// 融资租赁- 现金流统计表
export function financialLeaseCashFlowList(query) {
  return request({
    url: 'rent/dealLeaseRent/financialLeaseCashFlowList',
    method: 'get',
    params: query
  })
}

// 查询融资租赁现金流信息返回给Chart组件使用
export function cashFlowCharts(params) {
  return request({
    url: 'rent/dealLeaseRent/cashFlowCharts',
    method: 'get',
    params: params
  })
}

